const List = [{
  roomNo: 'DA076',
  equipmentList: [{
    equipmentId: '@id',
    equipmentNo: '0001',
    equipmentName: '温度报警器',
    description: '这个是超高灵敏度温度报警器',
    type: '温度',
    statusLabel: '关闭',
    status: '3',
    ipAddress: '123.11.181.23',
    updated: '@datetime',
  },
  {
    equipmentId: '@id',
    equipmentNo: '0002',
    equipmentName: '红外线报警器',
    description: '这个是远程红外报警器',
    type: '红外',
    statusLabel: '运行中',
    status: '2',
    ipAddress: '123.11.181.19',
    updated: '@datetime',
  },
  {
    equipmentId: '@id',
    equipmentNo: '0003',
    equipmentName: '视频监控',
    description: '1080P高清视频监控器',
    type: '视频',
    statusLabel: '已上线',
    status: '1',
    ipAddress: '123.11.181.26',
    updated: '@datetime',
  },
  {
    equipmentId: '@id',
    equipmentNo: '0004',
    equipmentName: '2号仓库红外报警器',
    description: '红外报警器',
    type: '红外',
    statusLabel: '异常',
    status: '4',
    ipAddress: '123.11.181.29',
    updated: '@datetime',
  }]
}]
module.exports = [
  {
    url: '/roomEquipmentManagement/getListByRoomNo',
    type: 'post',
    response(config) {
      const { roomNo = '' } = config.body
      let mockList = List.filter((item) => {
        if (item.roomNo === roomNo) return true
        return false
      })
      return {
        code: 200,
        msg: 'success',
        data: mockList,
      }
    },
  }
]
